package com.ll.demo1.bytecode;

import java.util.concurrent.Callable;

/**
 * @description:
 * @author: LiuLei
 * @create: 2024-09-13
 **/
public class Example<T> implements Runnable, Callable<T> {
    private int x = 42;
    private double y = 54.32;

    public int getX() {
        return x;
    }

    public double getY() {
        return y;
    }

    @Override
    public void run() {
        System.out.println("demo");
    }

    @Override
    public T call() throws Exception {
        return null;
    }
}
